import request from '@/utils/request'
const params = {
  userName: 'admin',
  passWord: 'admin'
}
export function login(data) {
  return request({
    url: 'admin/login',
    method: 'post',
    data
  })
}

// export function getInfo(token) {
//   return request({
//     url: '/mock/user/info',
//     method: 'get',
//     params: { token }
//   })
// }

export function logout() {
  return request({
    url: '/mock/user/logout',
    method: 'post'
  })
}
